package org.codegallery.javagal.concurrent.cpj;

import java.awt.Color;

public class Painter extends SingleOutputPushStage implements PushStage {
	protected final Color color; // the color to paint boxes

	public Painter(Color c) {
		color = c;
	}

	public void putA(Box p) {
		p.setColor(color);
		next1().putA(p);
	}
}
